package design.patterns.factorymode.factoryabstract.computer1;

/**
 * desc     : 抽象工厂
 * dateTime : 2020/7/21 9:04
 *
 * @author cww
 */

public abstract class AbstractComputerFactory {

    public static AbstractComputerFactory getProductor(String type){
        if (type == null) return null;
        if (type.toLowerCase().contains("Pc")){
            return new PcComputer();
        } else if (type.toLowerCase().contains("Mac")){

        }
        return null;
    }
}
